/* ═══════════════════════════════════════════════════════════════════
   Institut WAWASAN — Database System
   Design System & Global Styles
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Custom Properties ────────────────────────────────────── */
:root {
    /* Brand Colors — inspired by Institut WAWASAN logo */
    --primary-900: #0a1628;
    --primary-800: #0f2042;
    --primary-700: #142c5c;
    --primary-600: #1a3a7a;
    --primary-500: #1e4d9b;
    --primary-400: #2563b8;
    --primary-300: #4a8acf;
    --primary-200: #7db2e6;
    --primary-100: #b3d4f5;
    --primary-50:  #e0eefb;

    /* Accent */
    --accent-500: #38bdf8;
    --accent-400: #5cc9fa;
    --accent-300: #7ed5fc;
    --accent-200: #a4e2fd;

    /* Neutrals */
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50:  #f8fafc;

    /* Semantic */
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.12);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.12);
    --info: #38bdf8;
    --info-bg: rgba(56, 189, 248, 0.12);

    /* Layout */
    --nav-height: 70px;
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(37, 99, 184, 0.2);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.3s;
}

/* ─── Reset & Base ─────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Background Decoration ────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -30%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(30, 77, 155, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -40%;
    left: -20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ─── Navigation ───────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: linear-gradient(135deg, #0f1729 0%, #1a2744 40%, #1e3a5f 70%, #1a2744 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), rgba(124, 58, 237, 0.4), rgba(236, 72, 153, 0.3), transparent) 1;
    z-index: 1000;
    transition: all 0.4s var(--ease);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.navbar.scrolled {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #0a1220 0%, #152238 40%, #1a3050 70%, #152238 100%);
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    transition: all 0.3s var(--ease);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
    animation: logoPulse 3s ease-in-out infinite;
    position: relative;
}

.navbar-brand .logo-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
    z-index: -1;
    opacity: 0.4;
    filter: blur(8px);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35); }
    50% { box-shadow: 0 4px 25px rgba(129, 140, 248, 0.5); }
}

.navbar-brand span {
    background: linear-gradient(135deg, #e0f2fe, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.navbar-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 999px;
    transition: all 0.35s var(--ease);
    position: relative;
    white-space: nowrap;
}

.navbar-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-links a.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.2));
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15), inset 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.navbar-links a.btn-nav {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: white;
    font-weight: 600;
    box-shadow: 0 3px 15px rgba(56, 189, 248, 0.3);
    border: none;
}

.navbar-links a.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.45);
    background: linear-gradient(135deg, #22d3ee, #a78bfa);
}

.navbar-links a.btn-nav-outline {
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    background: transparent;
    font-weight: 600;
}

.navbar-links a.btn-nav-outline:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.8);
    color: #7dd3fc;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

/* ─── Nav Dropdown ─────────────────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 200px;
    background: linear-gradient(135deg, rgba(15, 23, 41, 0.97), rgba(26, 39, 68, 0.97));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: var(--radius-md);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s var(--ease);
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nav-dropdown-menu li {
    list-style: none;
}

.nav-dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 20px !important;
    font-size: 0.86rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0 !important;
    transition: all 0.2s var(--ease);
}

.nav-dropdown-menu a:hover {
    color: #ffffff !important;
    background: rgba(56, 189, 248, 0.12) !important;
    padding-left: 24px !important;
    transform: none !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
}

/* ─── Main Content ─────────────────────────────────────────────── */
.main-content {
    flex: 1;
    margin-top: var(--nav-height);
    position: relative;
    z-index: 1;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Flash Messages ───────────────────────────────────────────── */
.flash-container {
    position: fixed;
    top: calc(var(--nav-height) + 16px);
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    width: calc(100% - 48px);
}

.flash-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    backdrop-filter: blur(12px);
    animation: flashSlideIn 0.4s var(--ease) forwards;
    border: 1px solid transparent;
    box-shadow: var(--shadow-lg);
}

.flash-message.success {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--success);
    color: #166534;
}

.flash-message.error {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--error);
    color: #991b1b;
}

.flash-message.warning {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--warning);
    color: #92400e;
}

.flash-message.info {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--info);
    color: #0c4a6e;
}

.flash-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: opacity var(--duration) var(--ease);
}

.flash-close:hover {
    opacity: 1;
}

@keyframes flashSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flash-message.fade-out {
    animation: flashSlideOut 0.35s var(--ease) forwards;
}

@keyframes flashSlideOut {
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* ─── Hero Section ─────────────────────────────────────────────── */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-50);
    color: var(--primary-600);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(30, 77, 155, 0.12);
    animation: fadeInUp 0.6s var(--ease) forwards;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--primary-900);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.6s var(--ease) 0.1s both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
    animation: fadeInUp 0.6s var(--ease) 0.2s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    animation: fadeInUp 0.6s var(--ease) 0.3s both;
}

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--duration) var(--ease);
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    color: white;
    box-shadow: 0 3px 12px rgba(30, 77, 155, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 77, 155, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-700);
    border: 1.5px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.82rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* ─── Cards ────────────────────────────────────────────────────── */
.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(30, 77, 155, 0.06);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration) var(--ease);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 77, 155, 0.1);
}

.card-header {
    margin-bottom: 24px;
}

.card-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-900);
    letter-spacing: -0.02em;
}

.card-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--duration) var(--ease);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: var(--primary-50);
    color: var(--primary-500);
}

.stat-icon.green {
    background: var(--success-bg);
    color: var(--success);
}

.stat-icon.orange {
    background: var(--warning-bg);
    color: var(--warning);
}

.stat-icon.red {
    background: var(--error-bg);
    color: var(--error);
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ─── Feature Grid (Home) ──────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 0 60px;
}

.feature-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ─── Auth Forms ───────────────────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(30, 77, 155, 0.08);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s var(--ease) forwards;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .auth-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(30, 77, 155, 0.3);
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-900);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all var(--duration) var(--ease);
}

.form-group input:focus {
    border-color: var(--primary-400);
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 77, 155, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.form-actions {
    margin-top: 28px;
}

.form-actions .btn {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.88rem;
    color: var(--gray-500);
}

.auth-footer a {
    color: var(--primary-500);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--duration) var(--ease);
}

.auth-footer a:hover {
    color: var(--primary-700);
}

.approval-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: var(--info-bg);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.84rem;
    color: #0c4a6e;
    line-height: 1.5;
}

.approval-notice .notice-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ─── Table ────────────────────────────────────────────────────── */
.table-container {
    overflow-x: auto;
    background: white;
}

.card-no-pad {
    padding: 0;
    overflow: hidden;
    margin-bottom: 40px;
}

.td-bold {
    font-weight: 600;
}

.inline-form {
    display: inline;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table thead {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
}

.data-table th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.data-table td {
    padding: 14px 20px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.data-table tbody tr {
    transition: background var(--duration) var(--ease);
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge-pending {
    background: var(--warning-bg);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-approved {
    background: var(--success-bg);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-rejected {
    background: var(--error-bg);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-blocked {
    background: rgba(139, 92, 246, 0.12);
    color: #5b21b6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ─── Filter Tabs ──────────────────────────────────────────────── */
.filter-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 999px;
    border: 1.5px solid var(--gray-200);
    background: white;
    transition: all var(--duration) var(--ease);
    cursor: pointer;
}

.filter-tab:hover {
    border-color: var(--primary-300);
    color: var(--primary-600);
    background: var(--primary-50);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(30, 77, 155, 0.25);
}

.filter-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.filter-tab:not(.active) .filter-count {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* ─── Page Header ──────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-top: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-900);
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-top: 2px;
}

/* ─── Empty State ──────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--gray-400);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 0.88rem;
}

/* ─── Welcome Section ──────────────────────────────────────────── */
.welcome-section {
    padding: 40px 0 60px;
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    border-radius: var(--radius-xl);
    padding: 40px 44px;
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.welcome-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.welcome-card p {
    opacity: 0.85;
    font-size: 0.95rem;
    max-width: 480px;
}

.welcome-card .role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 16px;
    backdrop-filter: blur(4px);
}

/* Quick actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--gray-700);
    transition: all var(--duration) var(--ease);
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}

.quick-action-card .qa-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    background: var(--primary-50);
    color: var(--primary-500);
}

.quick-action-card .qa-icon-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.quick-action-card .qa-icon-success {
    background: var(--success-bg);
    color: var(--success);
}

.quick-action-card .qa-icon-error {
    background: var(--error-bg);
    color: var(--error);
}

.quick-action-card .qa-text h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-800);
}

.quick-action-card .qa-text p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ─── Footer ───────────────────────────────────────────────────── */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 32px 0;
    text-align: center;
    font-size: 0.84rem;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.footer a {
    color: var(--primary-300);
    text-decoration: none;
}

/* ─── Animations ───────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.5s var(--ease) forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .navbar-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: linear-gradient(180deg, #0f1729 0%, #1a2744 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 2px solid transparent;
        border-image: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), rgba(124, 58, 237, 0.4), transparent) 1;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--duration) var(--ease);
    }

    .navbar-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-links a {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .welcome-card {
        padding: 28px 24px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Warning & Extra Buttons ──────────────────────────────────── */
.btn-warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

/* Purple stat icon for blocked */
.stat-icon.purple {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}

/* Dashboard card spacing */
.dashboard-card {
    margin-bottom: 40px;
}

/* ─── Bulk Action Toolbar ──────────────────────────────────────── */
.bulk-toolbar {
    position: sticky;
    top: var(--nav-height);
    z-index: 90;
    margin-bottom: 16px;
    animation: slideDown 0.3s var(--ease) forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bulk-toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(30, 58, 95, 0.35), 0 0 0 1px rgba(255,255,255,0.08) inset;
    color: white;
    flex-wrap: wrap;
}

.bulk-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.bulk-info #bulk-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
    backdrop-filter: blur(4px);
}

.bulk-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bulk-btn {
    border: 1.5px solid rgba(255,255,255,0.15) !important;
    backdrop-filter: blur(4px);
}

/* ─── Custom Checkbox ──────────────────────────────────────────── */
.custom-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    width: 22px;
    height: 22px;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.custom-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 5px;
    background: white;
    transition: all 0.2s var(--ease);
    position: relative;
}

.custom-checkbox:hover .checkmark {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.custom-checkbox input:checked ~ .checkmark {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.custom-checkbox input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:indeterminate ~ .checkmark {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    border-color: transparent;
}

.custom-checkbox input:indeterminate ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 7px;
    width: 10px;
    height: 2.5px;
    background: white;
    border-radius: 1px;
}

.th-checkbox,
.td-checkbox {
    width: 48px;
    text-align: center;
    padding-left: 16px !important;
    padding-right: 4px !important;
}

/* ─── Selected Row Highlight ───────────────────────────────────── */
.data-table tbody tr.row-selected {
    background: rgba(37, 99, 235, 0.06) !important;
    border-left: 3px solid var(--primary-500);
}

.data-table tbody tr.row-selected td:first-child {
    padding-left: 13px !important;
}

.data-table tbody tr.row-selected:hover {
    background: rgba(37, 99, 235, 0.1) !important;
}

@media (max-width: 768px) {
    .bulk-toolbar-inner {
        flex-direction: column;
        text-align: center;
        padding: 12px 16px;
    }

    .bulk-actions {
        justify-content: center;
    }
}

/* ─── Profile Page ─────────────────────────────────────────────── */
.profile-card {
    margin-bottom: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all var(--duration) var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-400);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(30, 77, 155, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions-inline {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

/* ─── Document Upload Section ──────────────────────────────────── */
.doc-category {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--gray-100);
}

.doc-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.doc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.doc-category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
}

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
}

.doc-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.doc-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.doc-file-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.doc-filename {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    word-break: break-all;
}

.doc-filename:hover {
    color: var(--primary-800);
    text-decoration: underline;
}

.doc-meta {
    display: block;
    font-size: 0.76rem;
    color: var(--gray-400);
    margin-top: 2px;
}

.doc-delete-form {
    flex-shrink: 0;
    margin-left: 12px;
}

.btn-doc-delete {
    padding: 5px 10px;
    font-size: 0.76rem;
}

/* File upload area */
.doc-upload-form {
    margin-top: 10px;
}

.upload-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gray-50);
    border: 1.5px dashed var(--gray-300);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.84rem;
    color: var(--gray-500);
    transition: all var(--duration) var(--ease);
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.file-label:hover {
    border-color: var(--primary-400);
    color: var(--primary-600);
    background: var(--primary-50);
}

.file-label.has-file {
    border-color: var(--primary-400);
    border-style: solid;
    color: var(--primary-700);
    background: var(--primary-50);
}

.file-label-icon {
    flex-shrink: 0;
}

.file-label-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-btn {
    flex-shrink: 0;
}

/* ─── Responsive additions ─────────────────────────────────────── */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .upload-area {
        flex-direction: column;
        align-items: stretch;
    }

    .doc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .doc-delete-form {
        margin-left: 0;
    }

    .action-buttons {
        flex-direction: column;
        gap: 6px;
    }
}

/* ─── Staff Directory Page ─────────────────────────────────────── */

/* Directory icon on dashboard */
.qa-icon-directory {
    background: linear-gradient(135deg, rgba(30, 77, 155, 0.08), rgba(56, 189, 248, 0.12));
    color: var(--primary-500);
}

/* Toolbar */
.directory-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.dir-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
}

.search-input-wrap:focus-within {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(30, 77, 155, 0.1);
}

.search-by-select {
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--gray-600);
    padding: 11px 4px 11px 16px;
    outline: none;
    cursor: pointer;
}

.search-divider {
    width: 1px;
    height: 20px;
    background: var(--gray-200);
    margin: 0 8px;
}

.search-icon {
    font-size: 0.95rem;
    pointer-events: none;
    opacity: 0.5;
    margin-left: 12px;
}

.search-input {
    flex: 1;
    width: 100%;
    padding: 11px 40px 11px 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--gray-800);
    background: transparent;
    border: none;
    outline: none;
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--gray-600);
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    transition: all var(--duration) var(--ease);
}

.search-clear:hover {
    background: var(--error);
    color: white;
}

.dir-filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Results summary */
.dir-results-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 0.88rem;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 20px;
}

.results-count {
    font-weight: 600;
    color: var(--gray-700);
}

.results-filter-info strong {
    color: var(--primary-600);
}

/* Directory table card */
.dir-table-card {
    margin-bottom: 40px;
}

.dir-data-table th {
    position: sticky;
    top: 0;
    background: var(--gray-50);
    z-index: 1;
}

/* Staff cell in table */
.dir-staff-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.dir-avatar-sm {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(30, 77, 155, 0.2);
}

.dir-staff-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.88rem;
    line-height: 1.3;
}

.dir-staff-username {
    font-size: 0.78rem;
    color: var(--gray-400);
    font-weight: 400;
}

.dir-td-mono {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.84rem;
    letter-spacing: 0.02em;
}

.td-number {
    color: var(--gray-400);
    font-weight: 500;
    font-size: 0.82rem;
}

.dir-email-link {
    color: var(--primary-500);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--duration) var(--ease);
}

.dir-email-link:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* Document summary chip */
.dir-doc-summary {
    display: flex;
    align-items: center;
}

.dir-doc-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
}

.dir-doc-chip.has-docs {
    background: var(--success-bg);
    color: #166534;
    border-color: rgba(34, 197, 94, 0.2);
}

/* Expandable detail row */
.dir-detail-row {
    display: none;
}

.dir-detail-row.open {
    display: table-row;
}

.dir-detail-row td {
    padding: 0 !important;
    border-bottom: 2px solid var(--primary-100) !important;
}

.dir-detail-panel {
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--gray-50), rgba(30, 77, 155, 0.02));
    animation: detailSlideDown 0.35s var(--ease) forwards;
}

@keyframes detailSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dir-detail-section {
    margin-bottom: 24px;
}

.dir-detail-section:last-child {
    margin-bottom: 0;
}

.dir-detail-section h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-800);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Details grid inside expand */
.dir-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.dir-detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dir-detail-full {
    grid-column: 1 / -1;
}

.dir-detail-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dir-detail-value {
    font-size: 0.9rem;
    color: var(--gray-800);
    font-weight: 500;
}

/* Document badges in expand panel */
.dir-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.dir-doc-badge {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all var(--duration) var(--ease);
}

.dir-doc-has {
    background: white;
    border: 1px solid rgba(34, 197, 94, 0.2);
    box-shadow: var(--shadow-sm);
}

.dir-doc-empty {
    background: var(--gray-50);
    border: 1px dashed var(--gray-300);
}

.dir-doc-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.dir-doc-count {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--success);
}

.dir-doc-none {
    color: var(--gray-400);
}

.dir-doc-files {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dir-doc-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--primary-600);
    text-decoration: none;
    transition: all var(--duration) var(--ease);
    word-break: break-all;
}

.dir-doc-link:hover {
    background: var(--primary-50);
    color: var(--primary-800);
}

.dir-doc-size {
    color: var(--gray-400);
    font-size: 0.74rem;
    white-space: nowrap;
}

/* Expand button active state */
.dir-expand-btn.active {
    background: var(--primary-50);
    color: var(--primary-700);
    border-color: var(--primary-300);
}

/* Detail footer */
.dir-detail-footer {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.dir-meta {
    font-size: 0.78rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ─── Responsive — Directory ───────────────────────────────────── */
@media (max-width: 768px) {
    .dir-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .dir-search-form .btn {
        width: 100%;
    }

    .dir-data-table {
        font-size: 0.82rem;
    }

    .dir-staff-cell {
        min-width: 140px;
    }

    .dir-details-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dir-docs-grid {
        grid-template-columns: 1fr;
    }

    .dir-detail-footer {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .dir-details-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Student Module Styles
   ═══════════════════════════════════════════════════════════════════ */

/* Section Labels */
.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-700);
    margin-bottom: 16px;
    margin-top: 8px;
    letter-spacing: -0.01em;
}

.section-label-icon {
    font-size: 1.3rem;
}

/* Header actions */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Student avatar */
.student-avatar {
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
}

/* ─── Student Status Card ─────────────────────────────────────── */
.student-status-card {
    margin-bottom: 12px;
}

.status-management {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-info-row {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.status-current, .status-date {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
}

.status-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.status-select {
    min-width: 160px;
}

/* ─── Parent Section Styles ───────────────────────────────────── */
.parent-section {
    margin-bottom: 16px;
}

.parent-living-toggle {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
}

.living-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-700);
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--gray-700);
    cursor: pointer;
    font-weight: 500;
}

.radio-label input[type="radio"] {
    accent-color: var(--primary-500);
    width: 16px;
    height: 16px;
}

.radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.parent-fields {
    transition: opacity 0.3s ease;
}

/* Subsection headers */
.subsection-header {
    margin: 28px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-50);
}

.subsection-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-800);
    letter-spacing: -0.01em;
}

/* Employer section */
.employer-section {
    padding: 20px;
    background: rgba(124, 58, 237, 0.03);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-md);
    margin-top: 12px;
}

/* Same address toggle */
.same-address-toggle {
    margin-bottom: 16px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--primary-700);
    cursor: pointer;
    padding: 10px 16px;
    background: var(--primary-50);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(30, 77, 155, 0.1);
    transition: all var(--duration) var(--ease);
}

.checkbox-label:hover {
    background: var(--primary-100);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--primary-500);
    width: 16px;
    height: 16px;
}

/* Button lg */
.btn-lg {
    padding: 14px 36px;
    font-size: 1rem;
}

/* ─── Form Select (for student forms) ─────────────────────────── */
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all var(--duration) var(--ease);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-select:focus {
    border-color: var(--primary-400);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(30, 77, 155, 0.1);
}

/* Form textarea */
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all var(--duration) var(--ease);
    resize: vertical;
}

.form-textarea:focus {
    border-color: var(--primary-400);
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 77, 155, 0.1);
}

/* Stat icon purple */
.stat-icon.purple {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

/* ─── Dashboard card spacing ──────────────────────────────────── */
.dashboard-card {
    margin-top: 8px;
}

/* Form actions inline with larger margin */
.form-actions-inline {
    display: flex;
    justify-content: flex-end;
    padding: 16px 0;
    margin-bottom: 24px;
}

/* ─── Responsive Fixes ────────────────────────────────────────── */
@media (max-width: 768px) {
    .parent-living-toggle {
        flex-wrap: wrap;
        gap: 10px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .status-info-row {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .status-form {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        flex-direction: column;
    }

    /* Mobile nav dropdowns */
    .nav-dropdown-menu {
        position: static;
        transform: none;
        min-width: auto;
        background: rgba(15, 23, 41, 0.6);
        border: none;
        border-left: 2px solid rgba(56, 189, 248, 0.3);
        border-radius: 0;
        margin-left: 16px;
        padding: 4px 0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s var(--ease), opacity 0.3s var(--ease);
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown.mobile-open .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 200px;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nav-dropdown.mobile-open:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-dropdown-menu a {
        padding: 8px 16px !important;
        font-size: 0.84rem !important;
    }

    .nav-dropdown-menu a:hover {
        padding-left: 20px !important;
    }
}
[OK] Gemini AI Agent initialized on Vertex AI (Project: project-1ed787de-ab2f-4d81-a97, Location: us-central1)
